package com.jrx.anytxn.param.mapper.ext;

import com.jrx.anytxn.common.annotation.ParamTuningAnnotation;
import com.jrx.anytxn.param.entity.PrAutoPaymentTable;
import com.jrx.anytxn.param.mapper.base.PrAutoPaymentTableMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 批扣配置表扩展
 *
 * @author
 */
public interface ExtPrAutoPaymentTableMapper extends PrAutoPaymentTableMapper {

    List<PrAutoPaymentTable> selectByAutoPaymentFlag(@Param("autoPaymentFlag") String autoPaymentFlag);

    List<String> selectProIdByAutoPaymentFlag(@Param("autoPaymentFlag") String autoPaymentFlag);

    PrAutoPaymentTable findByProductId(@Param("productId") String productId);

    PrAutoPaymentTable selectByTenIdAndProductId(@Param("tenantId") String tenant_id,@Param("id") String id);

    int insertSelective(PrAutoPaymentTable record);

    @ParamTuningAnnotation
    int updateByTenIdAndProductId(PrAutoPaymentTable record);

    @ParamTuningAnnotation
    int deleteByTenIdAndProductId(@Param("tenantId") String tenant_id,@Param("id") String id);

    List<PrAutoPaymentTable> selectByTenantId(@Param("tenantId") String tenantId);
}
